﻿using System;
using System.Windows;
using System.Windows.Controls;

using SBPweb.PROvibe.Client.Library.Base;

namespace SBPweb.PROvibe.Client.Modules.Administration.Controls
{

    public partial class ConsoleTreeView : UserControlBase
    {

        public ConsoleTreeView()
        {
            InitializeComponent();
        }

        #region Event handlers

        protected override void OnLoaded(object sender, RoutedEventArgs e)
        {
            base.OnLoaded(sender, e);
        }

        private void icModules_Loaded(object sender, RoutedEventArgs e)
        {
            icModules = sender as ItemsControl;
            icModules.ItemsSource = ClientContext.ContentContextModel.Modules;
        }

        private void icServices_Loaded(object sender, RoutedEventArgs e)
        {
            icServices = sender as ItemsControl;
            icServices.ItemsSource = ClientContext.ContentContextModel.Services;
        }

        #endregion
        
    }
    
}